package com.netsdk.demo;


import com.netsdk.demo.util.CaseMenu;
import com.netsdk.lib.NetSDKLib;
import com.netsdk.lib.PlaySDKLib;
import com.netsdk.lib.utils.Initialization;

import java.util.Scanner;


/**
 * @author XXXXXX
 * @version 1.0
 * @description XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 * @date xxxx/xx/xx xx:xx
 */
public class DemoTemplate extends Initialization {


    /**变量区**/
    int channel=0;
    static NetSDKLib netsdkApi = NetSDKLib.NETSDK_INSTANCE;
    static NetSDKLib configApi = NetSDKLib.CONFIG_INSTANCE;
    static PlaySDKLib playsdkApi   = PlaySDKLib.PLAYSDK_INSTANCE;

    /**方法区**/

    /**
     * 方法模板
     */
    public void MethodTemplate() {
        // MethodContent
    }

    public void RunTest()
    {
        System.out.println("Run Test");
        CaseMenu menu = new CaseMenu();;
        menu.addItem((new CaseMenu.Item(this , "MethodTemplate" , "MethodTemplate")));
        menu.run();
    }

    public static void main(String[] args) {
        DemoTemplate demo = new DemoTemplate();
        /**登录信息运行时输入**/
        Scanner sc = new Scanner(System.in);
        System.out.print("ip:");
        String ip = sc.nextLine();
        System.out.print("port:");
        String tmp = sc.nextLine();
        int port = Integer.parseInt(tmp);
        System.out.print("username:");
        String username = sc.nextLine();
        System.out.print("password:");
        String pwd = sc.nextLine();
        InitTest(ip,port,username,pwd);
        /**登录信息固定**/
//        InitTest("192.168.3.110",37777,"admin","admin123");
        demo.RunTest();
        LoginOut();

    }
}
